package com.ckm.service;

import com.alibaba.fastjson2.JSONArray;
import com.ckm.entity.Major;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface MajorService {

    void addMajor(List<Major> majorList);

    void deleteMajor(Integer id);

    void updateMajor(Major major);

    PageInfo<Major> getMajorPage(Major major, int pageNum, int pageSize);

    List<Major> findMajor(Major major);

    JSONArray statistics(String colName);
}
